//
//  BLOrderModel.h
//  blanket
//
//  Created by Mac on 2018/1/11.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import <Foundation/Foundation.h>
@class BLGoodModel;
/************订单Model******************/
@interface BLOrderModel : NSObject
@property(nonatomic, strong) NSString                     *address;
@property(nonatomic, strong) NSString                     *mobile;
@property(nonatomic, strong) NSString                     *area;
@property(nonatomic, strong) NSString                     *create_time;
@property(nonatomic, strong) NSString                     *display;
@property(nonatomic, strong) NSString                     *gid;
@property(nonatomic, strong) NSString                     *goods_type;
@property(nonatomic, strong) NSString                     *orderID;//订单ID
@property(nonatomic, strong) NSString                     *oder_nu;
@property(nonatomic, strong) NSString                     *people;
@property(nonatomic, strong) NSString                     *state;
@property(nonatomic, strong) NSString                     *num;
@property(nonatomic, strong) NSString                     *uid;
@property(nonatomic, strong) NSArray<BLGoodModel*>                     *goods;
@property(nonatomic, strong) NSString                     *orderYype;

@property(nonatomic, strong) NSString                     *json;//订单
@property(nonatomic, strong) NSString                     *price;//总价
@property(nonatomic, strong) NSString                     *make_score;//积分
@property(nonatomic, strong) NSString                     *make_grade;//赠送盖币
//自定义获取字段
@property(nonatomic, strong) NSIndexPath                     *indexPath;

- (NSString*)allGrade;
- (NSString*)allMoney;
- (NSString*)allpoint;
@end

@interface BLGoodModel : NSObject
@property(nonatomic, strong) NSString                     *goods_name;
@property(nonatomic, strong) NSString                     *money;
@property(nonatomic, strong) NSString                     *uid;
@property(nonatomic, strong) NSString                     *create_time;
@property(nonatomic, strong) NSString                     *status;
@property(nonatomic, strong) NSString                     *width;
@property(nonatomic, strong) NSString                     *length;
@property(nonatomic, strong) NSString                     *gid;
@property(nonatomic, strong) NSString                     *price;
@property(nonatomic, strong) NSString                     *mass_name;
@property(nonatomic, strong) NSString                     *num;
@property(nonatomic, strong) NSString                     *cover_img_url;
@property(nonatomic, strong) NSString                     *mass_id;
@property(nonatomic, strong) NSString                     *goods_type;
@property(nonatomic, strong) NSString                     *grade;
@property(nonatomic, strong) NSString                     *score;
//"id":"127",
//"goods_name":"不错的选择",
//"money":"80",
//"uid":"18",
//"create_time":"1520233882",
//"status":"1",
//"width":"80",
//"length":"60",
//"gid":"18",
//"price":"80",
//"mass_name":"60*80",
//"num":"1",
//"cover_img_url":"http://39.104.78.211/pugai/Uploads/20180301/5a977a389ce63.jpg",
//"mass_id":"1",
//"order_nu":"2018030597989910",
//"grade":"0",
//"score":"8",
//"goods_type":"2"
@end
